<template>
    <div>
        <p>{{ childMsg }}</p>
        <P>父组件传下来的值 ----  {{ title }}</P>
        <button @click="changeParentValue">改变父组件的值</button>
    </div>
</template>

<script>
export default{
    data(){
        return {
            childMsg:"这是子组件的内容"
        }
    },
    methods: {
        changeParentValue(){
            this.$emit('change',123)
        }
    },
}
</script>